
	/***********************************************************************************************

		Module: Locale (native api)
		
		Methods:
			__ni_locale_get	()	- sid: 3.0

	***********************************************************************************************/

	//cli
	if(jsl.__stype === "cli")
		jsl.Locale.__ni_locale_get = function() {
			try {
				//@d[
				if(arguments.length)	throw jsl.ParamError()//@d]				
				return "en-us"
			}
			catch(e) {
				jsl.throwError(e, this, arguments)
			}		
		}	
	//web/desktop	
	else
		jsl.Locale.__ni_locale_get = function() {
			try {
				var l
				
				//@d[
				if(arguments.length)	throw jsl.ParamError()//@d]				

				l =	(navigator.language || navigator.userLanguage || "en-us").replace("_", "-")				
				//google analytic + ie works lowercase with locale codes
				return (l.indexOf("-") === -1 ? l + "-" + l : l).toLowerCase()
			}
			catch(e) {
				jsl.throwError(e, this, arguments)
			}		
		}